<style type="text/css">
    .bootstrap-datetimepicker-widget.dropdown-menu {
        inset: -10px -20px -30px -40px;
        z-index: 1051 !important;
    }
</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <fieldset class="layui-elem-field">
        <legend>基本信息</legend>
        <div class="row layui-field-box">
            <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2"><span
                            style="color:red;">*</span>{:__('Common_seal')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <select  id="c-common_seal" data-rule="required" class="form-control selectpicker" name="row[common_seal]">
                            <option value="" >请选择{:__('Common_seal')}</option>
                            {foreach name="commonSealList" item="vo"}
                            <option value="{$key}" {in name="key" value="$row.common_seal"}selected{/in}>{$vo}</option>
                            {/foreach}
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2"><span
                            style="color:red;">*</span>{:__('Usedeatil')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <select  id="c-usedeatil" data-rule="required" class="form-control selectpicker" name="row[usedeatil]">
                            <option value="" >请选择{:__('Usedeatil')}</option>
                            {foreach name="usedeatilList" item="vo"}
                            <option value="{$key}" {in name="key" value="$row.usedeatil"}selected{/in}>{$vo}</option>
                            {/foreach}
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2"><span
                            style="color:red;">*</span>{:__('Customer')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-customer" data-rule="required" class="form-control" name="row[customer]" placeholder="{:__('Customer')}" value="{$row.customer}">
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-1">{:__('Remark')}:</label>
                    <div class="col-xs-12 col-sm-11">
                        <textarea id="c-remark" class="form-control" name="row[remark]" rows="5"
                                  placeholder="{:__('Remark')}">{$row.remark}</textarea>
                    </div>
                </div>
            </div>
        </div>
    </fieldset>
    <fieldset class="layui-elem-field">
        <legend>附件</legend>
        <div class="row layui-field-box">
            <div class="col-xs-12 col-sm-12">
                <div class="form-group col-sm-10">
                    <label class="control-label col-xs-12 col-sm-1"><span
                            style="color:red;">*</span>附件:</label>
                    <div class="input-group">
                        <input id="p-file_ids" class="form-control" placeholder="请上传" size="35" name="row[file_ids]" data-rule="required"
                               type="text" value="{$row.file_ids}">
                        <div class="input-group-addon no-border no-padding">
                            <span><button type="button" class="btn btn-danger faupload" data-input-id="p-file_ids"
                                          data-url="kuerp/base/upload" data-ids="file_ids" data-multiple="true" data-preview-id="c-file_ids"><i
                                    class="fa fa-upload"></i> {:__('Upload')}</button></span>

                        </div>
                        <span class="msg-box n-rightdata-pagination "></span>
                    </div>
                    <ul class="row list-inline faupload-preview" id="c-file_ids" data-id="file_ids"></ul>
                </div>
            </div>
        </div>
    </fieldset>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
